package pbbltobpel.model;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public abstract class PartnerLink implements IXmlWriter{
	private String name;
	private String partnerLinkType;
	
	public String getPartnerLinkType() {
		return partnerLinkType;
	}
	public void setPartnerLinkType(String partnerLinkType) {
		this.partnerLinkType = partnerLinkType;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public Element getXmlElement(Document doc) {
		Element element = doc.createElement("bpel:partnerLink");
		element.setAttribute("name", name);
		element.setAttribute("partnerLinkType", partnerLinkType);
		return element;
	}
}
